﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChainOfResponsibilityPattern
{
    /// <summary>
    /// 具體處理者
    /// </summary>
    public class ConcreteHandler : Handler
    {
        /// <summary>
        /// 定義自己的處理邏輯
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public override Response echo(Request request)
        {
            //完成處理邏輯
            return null;
        }

        /// <summary>
        /// 設置自己的處理級別
        /// </summary>
        /// <returns></returns>
        public override Level getHandlerLevel()
        {
            //設置自己的處理級別
            return null;
        }
    }
}
